<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:panelGrid columns="2" id="navigation_panel" border="0"
		rendered="#{loginManaged.displayApplicationToolbar}" width="100%"
		cellspacing="0" cellpadding="0" styleClass="panel_navigation"
		columnClasses="_left_middle, _right_top">

		<h:panelGrid id="messages_panel" columns="2" cellpadding="0"
			styleClass="panel_navigation_messages" cellspacing="0" border="0">
			<h:form id="refresh_form">
				<h:panelGrid id="icons_panel" columns="3" border="0" cellpadding="0"
					cellspacing="0">
					<a4j:commandLink action="#{hubManaged.refreshHub}"
						render="hub_panel">&nbsp;
				<h:graphicImage id="refresh"
							value="../../imgs/icons/ico_refresh.gif" width="20" />
						<a4j:param name="fromOutcome" value="null"
							assignTo="#{hubManaged.criterion.fromOutCome}" />
					</a4j:commandLink>

					<h:graphicImage id="ico_up"
						onclick="display_div(false,'hub_menu_form'); 
						display_div(false,'refresh_form:ico_up'); 
						display_div(true,'refresh_form:ico_down');"
						value="../../imgs/icons/ico_arrow_up.png" width="20"
						style="cursor: pointer;" />

					<h:graphicImage id="ico_down"
						onclick="display_div(true,'hub_menu_form'); 
						display_div(false,'refresh_form:ico_down'); 
						display_div(true,'refresh_form:ico_up');"
						value="../../imgs/icons/ico_arrow_down.png" width="20"
						style="cursor: pointer;visibility:hidden;" />
				</h:panelGrid>

			</h:form>
			<rich:messages />
		</h:panelGrid>

		<h:form id="find_wagon_form">
			<h:panelGrid id="find_wagon_panel" columns="3"
				style="float: right;padding: 2px 0px 0px 0px;" cellspacing="0"
				cellpadding="0">
				<h:inputText value="#{hubManaged.criterion.wagonExtId}"
					maxlength="13" style="height:16px;border-color:#465660" />&nbsp;
				<a4j:commandButton value="#{lbl['common.button.wagon']}"
					action="#{hubManaged.findWagonInTraffic}" render="hub_panel"
					styleClass="hub_action_button" style="height:19px;" />
			</h:panelGrid>
		</h:form>
	</h:panelGrid>
</ui:composition>
</html>
